package cn.edu.gues.infosystam.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 苏小小
 * @since 2020-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Task对象", description="")
public class Task implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "填报任务ID")
    @TableId(value = "task_id", type = IdType.AUTO)
    private Integer taskId;

    @ApiModelProperty(value = "填报任务教师工号")
    private Integer tno;

    @ApiModelProperty(value = "填报任务名称")
    private String taskName;

    @ApiModelProperty(value = "填报任务范围")
    private String taskRange;

    @ApiModelProperty(value = "填报任务模板")
    private Integer taskTemplate;

    @ApiModelProperty(value = "填报任务开始时间")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date taskStart;

    @ApiModelProperty(value = "填报任务结束时间")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date taskEnd;

    @ApiModelProperty(value = "任务状态（1正在进行填报任务，2填报任务暂停中，3填报任务已完成）")
    private Integer taskState;

    @ApiModelProperty(value = "逻辑删除（0：未删除，1：删除）")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "发布人姓名")
    @TableField(exist = false)
    private String tname;


}
